//---------------------------------------------------------------------
// File: BizUnitTests.cs
// 
// Summary: 
//
// Author: Kevin B. Smith (http://blogs.msdn.com/kevinsmi)
//
//---------------------------------------------------------------------
// Copyright (c) 
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//---------------------------------------------------------------------

using NUnit.Framework;


namespace BizUnit.Extensions.Oracle.Tests
{
    /// <summary>
    /// The BizUnit Extensions Tests is a test library for some of the extensions.
    /// It is provided here as a indicative sample of what may be achieved but 
    /// actually unlike NUnit tests which test the assembly in question and can be 
    /// assisted by mock libraries, the BizUnit assemblies actually control real 
    /// orchestrations and other Biztalk artifacts which it is impossible to mock
    /// and provide. Therefore please use these only as a guide.
    /// 
    /// In the future versions of the test library we will try and provide a sample
    /// application which can be deployed for the tests to be run against and which
    /// will allow the tests to be completely repeatable and reusable. It may also be 
    /// more prudent to do this against the SDK samples since they are freely available 
    /// in any case
    /// </summary>
    [TestFixture]
    public class BizUnitExtensionsOracleTests
    {
        /// <summary>
        /// The common setup for all tests. Runs the Test_Setup.xml file which copies the InDoc1.xml file
        /// from the source folder to the Rec_Setup folder. This is the same as the CoreTests
        /// </summary>
        [TestFixtureSetUp]
        public void SetUp()
        {
            //			BizUnit bizUnit = new BizUnit(@".\..\..\TestCases\Test_Setup.xml", BizUnit.TestGroupPhase.TestGroupSetup );
            //			bizUnit.RunTest();
        }

        /// <summary>
        /// Common teardown step to delete the xml file from the Rec_Setup folder
        /// </summary>
        [TestFixtureTearDown]
        public void TearDown()
        {

            //BizUnit.
            BizUnit bizUnit = new BizUnit(@".\..\..\TestCases\Test_TearDown.xml", TestGroupPhase.TestGroupTearDown);
            bizUnit.RunTest();
        }

        /// <summary>
        /// Runs a query against an oracle database
        /// </summary>
        [Test]
        public void Test_01_OracleDBQueryStep()
        {
            BizUnit bizUnit = new BizUnit(@".\..\..\TestCases\Test_08_OracleDBQuery.xml");
            bizUnit.RunTest();

        }


    }
}
